// const HOST = "https://www.mmingapp.com"; //线上地址
const HOST = "https://wx.pingpingapp.com/mingmingmm"; //测试地址

// 注册
var register    = HOST + "/token/register";
// 用户首页接口
var index       = HOST + "/index";
// 查询分组和分组人数
var findGroup   = HOST + "/group/findGroup";
// 添加或修改分组
var addOrEdit   = HOST + "/group/addOrEdit";
// 登录
var login       = HOST + "/token/login" ;
// 查询分组详情
var findGroupUser= HOST + "/group/findGroupUser" ;
// 删除分组接口
var deleteGroup = HOST + "/group/deleteGroup" ;
// 分配分组接口
var distribution = HOST + "/group/distribution";
// 个人消息接口
var sysMessage  = HOST + "/notice/sysMessage" ;
// 修改消息状态
var noticEedit = HOST + "/sendcode/edit";
// 删除消息
var deleteMsg = HOST + "/sendcode/deleteMsg" ;
// 修改个人名片信息
var userEdit    = HOST + "/user/edit" ;
// 更换手机号接口
var updatePhone = HOST + "/user/updatePhone" ;
// 添加名片信息接口
var add         = HOST + "/user/add" ;
// 图片上传
var imgsUpdate  = HOST + "/user/imgsUpdate" ;
// 查看二维码接口
var qrCode      = HOST + "/user/qrCode" ;
// 查询其他用户信息接口(详情)
var other       = HOST + "/user/detail" ;
// 查看(我)模块信息
var myData      = HOST + "/user/myData" ;
// 验证手机号接口
var sendCode    = HOST + "/code/sendCode" ;
// 性别标签
var label       = HOST + "/user/label" ;
// 人气
var popilarity  = HOST + "/sendcode/popilarity" ;
// 个人认证信息
var userCertification = HOST + "/certification/userCertification" ;
// 上传认证
var certification  = HOST + "/certification/certification" ;
// 查询印象接口
var allMyImpression = HOST + "/user/myImpression" ;
// 删除印象接口
var delMyImpression = HOST + '/impression/deleteById';
// 添加印象
var impressionAddOrEdit   = HOST + "/impression/addOrEdit" ;
//赞同印象
var agreeImpression = HOST + "/impression/addImpression";
// 谁赞我的印象
var findImpressMeUser = HOST + "/user/findImpressMeUser" ;
// 名片夹接口
var findCollect = HOST + "/collection/findCollect" ;
// 取消收藏 / 重新收藏接口
var collectionAddOrEdit = HOST + "/collection/addOrEdit" ;
// 显示谁收藏我
var findCollectme     = HOST + "/user/findCollectme";
// 取消点赞 / 重新点赞接口 / 点赞
var likeAddOrEdit = HOST + "/like/addOrEdit";
// 谁给我点赞接口
var findLikeme = HOST + "/user/findLikeme";
// 生成图片到朋友圈
var generateImg = HOST + "/mycard/createImage";
// 查询授权后的个人信息
var userMsg     = HOST + "/user/userMsg";
// 查询好友全部印象
var otherImpress = HOST + "/sendcode/otherImpress";
// 未授权注册
var noauthorize = HOST + "/token/noauthorize";
// 图形验证码
var verifyCode = HOST + "/captcha";
//名片识别
var scanCard = HOST + '/mycard/scan';
//识别微信截图
var wxScan = HOST + '/mycard/wxScan';
//发票列表
var invoiceList = HOST + '/invoice/list';
//删除发票
var invoiceDelete = HOST + '/invoice/delete';
//发票详情
var invoiceDetai = HOST + '/invoice/detail';
//发票添加或删除
var invoicAddorEdit = HOST + '/invoice/addOrEdit';
//名片识别添加或修改
var cardAddOrEdit = HOST + '/card/addOrEdit';
//批量
var batchGroup = HOST + '/card/batchGroup';
//批量
var batchDelete = HOST + '/card/batchDelete';
//添加名片图片和背景图
var addImg = HOST + '/card/addImg';
//删除名片
var cardDelete = HOST + '/card/delete';
//新增拜访(备注)
var addRemark = HOST + '/remarks/addOrEdit';
//新增提醒
var addRemind = HOST + '/remind/save';
//备注列表
var remarkList = HOST + '/remarks/list';
//删除备注
var deleteRemark = HOST + '/remarks/delete';
//备注详情
var detailRemark = HOST + '/remarks/detail';
//提醒列表
var remindList = HOST + '/remind/list';
//删除提醒
var deleteRemind = HOST + '/remind/delete';
//提醒详情
var detailRemind = HOST + '/remind/detail';
//根据公司名字判断添加
var isExist = HOST + '/user/isExist';
//根据公司和名称判断添加
var inpExist = HOST + '/card/isExist';
//我的名片列表
var findMyList = HOST + '/user/findMyList';
//拖动排序(我的名片列表)
var sortById = HOST + "/user/sortById";
//我的名片回显(编辑我的名片)
var showMyCard = HOST + "/user/showMyCard";
//删除我的名片
var myDelCard = HOST + "/user/delCard";
//首次创建名片
var defaultName = HOST + '/user/defaultName';
//改变二维码
var changeCode = HOST + '/mycard/changeCode';
//编辑来源
var editSource = HOST + '/collection/editSource';
//根据uid查询第一张名片信息
var findByUid = HOST + '/user/findByUid';

module.exports = {
  register   : register,
  index      : index,
  findGroup  : findGroup,
  addOrEdit  : addOrEdit,
  login      : login,
  findGroupUser: findGroupUser,
  deleteGroup: deleteGroup,
  distribution: distribution,
  sysMessage : sysMessage,
  noticEedit : noticEedit,
  userEdit   : userEdit,
  updatePhone: updatePhone,
  add        : add,
  qrCode     : qrCode,
  other      : other,
  myData     : myData,
  sendCode   : sendCode,
  label      : label,
  popilarity: popilarity,
  userCertification: userCertification,
  certification: certification,
  allMyImpression: allMyImpression,
  impressionAddOrEdit: impressionAddOrEdit,
  agreeImpression: agreeImpression,
  findImpressMeUser: findImpressMeUser,
  findCollect: findCollect,
  collectionAddOrEdit: collectionAddOrEdit,
  findCollectme: findCollectme,
  likeAddOrEdit: likeAddOrEdit,
  findLikeme: findLikeme,
  generateImg: generateImg,
  imgsUpdate: imgsUpdate,
  userMsg: userMsg,
  deleteMsg: deleteMsg,
  otherImpress: otherImpress,
  noauthorize: noauthorize,
  verifyCode: verifyCode,
  scanCard: scanCard,
  wxScan: wxScan,
  addImg: addImg,
  invoiceList: invoiceList,
  invoiceDelete: invoiceDelete,
  invoiceDetai: invoiceDetai,
  invoicAddorEdit: invoicAddorEdit,
  batchGroup: batchGroup,
  batchDelete:batchDelete,
  cardAddOrEdit: cardAddOrEdit,
  cardDelete: cardDelete,
  addRemark: addRemark,
  addRemind: addRemind,
  remarkList: remarkList,
  deleteRemark: deleteRemark,
  detailRemark: detailRemark,
  remindList: remindList,
  deleteRemind: deleteRemind,
  detailRemind: detailRemind,
  delMyImpression: delMyImpression,
  isExist: isExist,
  findMyList: findMyList,
  sortById: sortById,
  showMyCard: showMyCard,
  myDelCard: myDelCard,
  defaultName: defaultName,
  inpExist: inpExist,
  changeCode: changeCode,
  editSource: editSource,
  findByUid: findByUid
};